package com.yf.customdubbo;

import com.yf.customdubbo.registry.IServiceDiscovery;
import com.yf.customdubbo.registry.ServiceDiscoveryImpl;
import com.yf.customdubbo.service.IGPService;

public class ClientTest {

    public static void main(String[] args) {
        IServiceDiscovery serviceDiscovery=new ServiceDiscoveryImpl();

        RpcClientProxy rpcClientProxy=new RpcClientProxy(serviceDiscovery);
        IGPService igpService=rpcClientProxy.create(IGPService.class);
        System.out.println(igpService.hello("jack,hahaha"));

    }
}
